Optimal. Leaf size=103 \[ \frac{\sqrt{d+e x^2} \left (a+b \tan ^{-1}(c x)\right )}{e}-\frac{b \sqrt{c^2 d-e} \tan ^{-1}\left (\frac{x \sqrt{c^2 d-e}}{\sqrt{d+e x^2}}\right )}{c e}-\frac{b \tanh ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d+e x^2}}\right )}{c \sqrt{e}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0986641, antiderivative size = 103, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {4974, 402, 217, 206, 377, 203} \[ \frac{\sqrt{d+e x^2} \left (a+b \tan ^{-1}(c x)\right )}{e}-\frac{b \sqrt{c^2 d-e} \tan ^{-1}\left (\frac{x \sqrt{c^2 d-e}}{\sqrt{d+e x^2}}\right )}{c e}-\frac{b \tanh ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d+e x^2}}\right )}{c \sqrt{e}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4974
Rule 402
Rule 217
Rule 206
Rule 377
Rule 203
Rubi steps
\begin{align*} \int \frac{x \left (a+b \tan ^{-1}(c x)\right )}{\sqrt{d+e x^2}} \, dx &=\frac{\sqrt{d+e x^2} \left (a+b \tan ^{-1}(c x)\right )}{e}-\frac{(b c) \int \frac{\sqrt{d+e x^2}}{1+c^2 x^2} \, dx}{e}\\ &=\frac{\sqrt{d+e x^2} \left (a+b \tan ^{-1}(c x)\right )}{e}-\frac{b \int \frac{1}{\sqrt{d+e x^2}} \, dx}{c}+\frac{\left (b \left (-c^2 d+e\right )\right ) \int \frac{1}{\left (1+c^2 x^2\right ) \sqrt{d+e x^2}} \, dx}{c e}\\ &=\frac{\sqrt{d+e x^2} \left (a+b \tan ^{-1}(c x)\right )}{e}-\frac{b \operatorname{Subst}\left (\int \frac{1}{1-e x^2} \, dx,x,\frac{x}{\sqrt{d+e x^2}}\right )}{c}+\frac{\left (b \left (-c^2 d+e\right )\right ) \operatorname{Subst}\left (\int \frac{1}{1-\left (-c^2 d+e\right ) x^2} \, dx,x,\frac{x}{\sqrt{d+e x^2}}\right )}{c e}\\ &=\frac{\sqrt{d+e x^2} \left (a+b \tan ^{-1}(c x)\right )}{e}-\frac{b \sqrt{c^2 d-e} \tan ^{-1}\left (\frac{\sqrt{c^2 d-e} x}{\sqrt{d+e x^2}}\right )}{c e}-\frac{b \tanh ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d+e x^2}}\right )}{c \sqrt{e}}\\ \end{align*}
Mathematica [C] time = 0.371652, size = 251, normalized size = 2.44 \[ \frac{2 a c \sqrt{d+e x^2}-i b \sqrt{c^2 d-e} \log \left (\frac{4 c^2 e \left (-i \sqrt{c^2 d-e} \sqrt{d+e x^2}-i c d+e x\right )}{b (c x-i) \left (c^2 d-e\right )^{3/2}}\right )+i b \sqrt{c^2 d-e} \log \left (\frac{4 c^2 e \left (i \sqrt{c^2 d-e} \sqrt{d+e x^2}+i c d+e x\right )}{b (c x+i) \left (c^2 d-e\right )^{3/2}}\right )+2 b c \tan ^{-1}(c x) \sqrt{d+e x^2}-2 b \sqrt{e} \log \left (\sqrt{e} \sqrt{d+e x^2}+e x\right )}{2 c e} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.806, size = 0, normalized size = 0. \begin{align*} \int{x \left ( a+b\arctan \left ( cx \right ) \right ){\frac{1}{\sqrt{e{x}^{2}+d}}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.57512, size = 1461, normalized size = 14.18 \begin{align*} \left [\frac{2 \, b \sqrt{e} \log \left (-2 \, e x^{2} + 2 \, \sqrt{e x^{2} + d} \sqrt{e} x - d\right ) + \sqrt{-c^{2} d + e} b \log \left (\frac{{\left (c^{4} d^{2} - 8 \, c^{2} d e + 8 \, e^{2}\right )} x^{4} - 2 \,{\left (3 \, c^{2} d^{2} - 4 \, d e\right )} x^{2} - 4 \,{\left ({\left (c^{2} d - 2 \, e\right )} x^{3} - d x\right )} \sqrt{-c^{2} d + e} \sqrt{e x^{2} + d} + d^{2}}{c^{4} x^{4} + 2 \, c^{2} x^{2} + 1}\right ) + 4 \, \sqrt{e x^{2} + d}{\left (b c \arctan \left (c x\right ) + a c\right )}}{4 \, c e}, -\frac{\sqrt{c^{2} d - e} b \arctan \left (\frac{\sqrt{c^{2} d - e}{\left ({\left (c^{2} d - 2 \, e\right )} x^{2} - d\right )} \sqrt{e x^{2} + d}}{2 \,{\left ({\left (c^{2} d e - e^{2}\right )} x^{3} +{\left (c^{2} d^{2} - d e\right )} x\right )}}\right ) - b \sqrt{e} \log \left (-2 \, e x^{2} + 2 \, \sqrt{e x^{2} + d} \sqrt{e} x - d\right ) - 2 \, \sqrt{e x^{2} + d}{\left (b c \arctan \left (c x\right ) + a c\right )}}{2 \, c e}, \frac{4 \, b \sqrt{-e} \arctan \left (\frac{\sqrt{-e} x}{\sqrt{e x^{2} + d}}\right ) + \sqrt{-c^{2} d + e} b \log \left (\frac{{\left (c^{4} d^{2} - 8 \, c^{2} d e + 8 \, e^{2}\right )} x^{4} - 2 \,{\left (3 \, c^{2} d^{2} - 4 \, d e\right )} x^{2} - 4 \,{\left ({\left (c^{2} d - 2 \, e\right )} x^{3} - d x\right )} \sqrt{-c^{2} d + e} \sqrt{e x^{2} + d} + d^{2}}{c^{4} x^{4} + 2 \, c^{2} x^{2} + 1}\right ) + 4 \, \sqrt{e x^{2} + d}{\left (b c \arctan \left (c x\right ) + a c\right )}}{4 \, c e}, -\frac{\sqrt{c^{2} d - e} b \arctan \left (\frac{\sqrt{c^{2} d - e}{\left ({\left (c^{2} d - 2 \, e\right )} x^{2} - d\right )} \sqrt{e x^{2} + d}}{2 \,{\left ({\left (c^{2} d e - e^{2}\right )} x^{3} +{\left (c^{2} d^{2} - d e\right )} x\right )}}\right ) - 2 \, b \sqrt{-e} \arctan \left (\frac{\sqrt{-e} x}{\sqrt{e x^{2} + d}}\right ) - 2 \, \sqrt{e x^{2} + d}{\left (b c \arctan \left (c x\right ) + a c\right )}}{2 \, c e}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x \left (a + b \operatorname{atan}{\left (c x \right )}\right )}{\sqrt{d + e x^{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \arctan \left (c x\right ) + a\right )} x}{\sqrt{e x^{2} + d}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]